/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.hcht.xrlh.rwfz.entity;

import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 任务分组Entity
 * @author lrz
 * @version 2016-12-22
 */
public class DrRwXz extends DataEntity<DrRwXz> {
	
	private static final long serialVersionUID = 1L;
	private String rwId;		// 任务ID
	private String jhId;		// 计划ID
	private String sxId;		// 事项ID
	private Long xzIndex;		// 小组序号
	private List<DrRwXzyr> drRwXzyrList = Lists.newArrayList();		// 子表列表
	private List<DrXzRw> drXzRwList = Lists.newArrayList();		// 子表列表
	
	
	public Long getXzIndex() {
		return xzIndex;
	}

	public void setXzIndex(Long xzIndex) {
		this.xzIndex = xzIndex;
	}

	public DrRwXz() {
		super();
	}

	public DrRwXz(String id){
		super(id);
	}

	@Length(min=0, max=64, message="任务ID长度必须介于 0 和 64 之间")
	public String getRwId() {
		return rwId;
	}

	public void setRwId(String rwId) {
		this.rwId = rwId;
	}
	
	@Length(min=0, max=64, message="计划ID长度必须介于 0 和 64 之间")
	public String getJhId() {
		return jhId;
	}

	public void setJhId(String jhId) {
		this.jhId = jhId;
	}
	
	@Length(min=0, max=64, message="事项ID长度必须介于 0 和 64 之间")
	public String getSxId() {
		return sxId;
	}

	public void setSxId(String sxId) {
		this.sxId = sxId;
	}
	
	public List<DrRwXzyr> getDrRwXzyrList() {
		return drRwXzyrList;
	}

	public void setDrRwXzyrList(List<DrRwXzyr> drRwXzyrList) {
		this.drRwXzyrList = drRwXzyrList;
	}
	public List<DrXzRw> getDrXzRwList() {
		return drXzRwList;
	}

	public void setDrXzRwList(List<DrXzRw> drXzRwList) {
		this.drXzRwList = drXzRwList;
	}
}